<?php $this->load->view('common/pagehead')?>
<?php $this->load->view('common/header')?>
<div id="content" class="pgwrapper1" style="background:#fff">
<div>
<div class="spec_15"></div>
<?php $this->load->view('common/browseByAlphabet'); ?>
<div class="spec_15"></div>
<?php $oldStoreName=""; for($i=0;$i<count($allStoresArray);$i++){ ?>
<?php if($oldStoreName!=substr($allStoresArray[$i]['store_name'], 0, 1)){ ?><div id="allStore" class="mlr15"><div class="txt5 bdr_b pb10"><?php echo substr($allStoresArray[$i]['store_name'], 0, 1); ?></div><ul class="storeLnk"><?php } ?>
<li><a href="/<?php echo $allStoresArray[$i]['store_url']; ?>-coupons"><?php echo $allStoresArray[$i]['store_name']; ?> (<?php echo $allStoresArray[$i]['noOfCoupons']; ?>)</a></li>
<?php if(isset($allStoresArray[$i+1]['store_name']) && substr($allStoresArray[$i+1]['store_name'], 0, 1)!=substr($allStoresArray[$i]['store_name'], 0, 1)){ ?></ul></div><div class="spec_15"></div>
<?php } ?>
<?php $oldStoreName=substr($allStoresArray[$i]['store_name'], 0, 1); } ?>
</div>
<div class="spec_15"></div>
<?php $this->load->view('common/search'); ?>
<div class="spec_15"></div>
<?php $this->load->view('common/banners'); ?>
<div class="spec_15"></div>
</div>
</div>
<?php $this->load->view('common/footer')?>